﻿using MS.Common;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wpf.Basics.ViewModels;
using wpf.Basics.Views;

namespace wpf.Basic
{
    public class BasicModule : IModule
    {
        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.Register<BedViewModel>();
            containerRegistry.Register<Object, BedView>(nameof(BedView));
            //containerRegistry.RegisterForNavigation<BedView>("BedView");
        }
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
        }
    }
}